package homework;

/**
 * @Author Stringzhua
 * @Date 2024/1/16 8:25
 * description:
 */
public class test01 {
    public static void main(String[] args) {
        //01
//        int x = 5;
//        int y = 5;
//        if (x++ == 6 & ++y == 6) {
//            x = 11;
//        }
//        System.out.println("x = " + x + ",y=" + y);//6 6
        //02
//        int x = 5;
//        int y = 5;
//        if (x++ == 6 && ++y == 6) {
//            x = 11;
//        }
//        System.out.println("x = " + x + ",y=" + y);//6 5
        //03
//        int x = 5;
//        int y = 5;
//        if (x++ == 5 | ++y == 5) {
//            x = 11;
//        }
//        System.out.println("x = " + x + ",y=" + y);//11 6
        //04
        int x = 5;
        int y = 5;
        if (x++ == 5 || ++y == 5) {
            x = 11;
        }
        System.out.println("x = " + x + ",y=" + y);//11 5
    }
}
